package main;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 33013
 * Date: 2023-03-11
 * Time: 12:37
 */
public class Test1 {
    public static void main(String[] args) {
        Animal animal1 = new Cat("灰色",10);
        Animal animal2 = new Dog("黑色",6);
        person person = new person("老王",55);
        person.keepPet(animal1,"鱼");
        person.keepPet(animal2,"骨头");
    }
}
